// vite.config.ts
import { defineConfig } from "file:///E:/myhome/myprojects/project-management6a/frontend/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/myhome/myprojects/project-management6a/frontend/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
import AutoImport from "file:///E:/myhome/myprojects/project-management6a/frontend/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/myhome/myprojects/project-management6a/frontend/node_modules/unplugin-vue-components/dist/vite.mjs";
import { ElementPlusResolver, AntDesignVueResolver } from "file:///E:/myhome/myprojects/project-management6a/frontend/node_modules/unplugin-vue-components/dist/resolvers.mjs";
var __vite_injected_original_dirname = "E:\\myhome\\myprojects\\project-management6a\\frontend";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver(), AntDesignVueResolver()],
      imports: ["vue", "vue-router", "pinia"],
      dts: "src/auto-imports.d.ts"
    }),
    Components({
      resolvers: [
        ElementPlusResolver(),
        AntDesignVueResolver({
          importStyle: false
          // css in js
        })
      ],
      dts: "src/components.d.ts"
    })
  ],
  resolve: {
    alias: {
      "@": resolve(__vite_injected_original_dirname, "src"),
      "pdfjs-dist/legacy/build/pdf.js": "pdfjs-dist/legacy/build/pdf.mjs",
      "pdfjs-dist/legacy/build/pdf": "pdfjs-dist/legacy/build/pdf.mjs",
      "pdfjs-dist/legacy/build/pdf.worker.js": "pdfjs-dist/legacy/build/pdf.worker.mjs",
      "pdfjs-dist/legacy/build/pdf.worker": "pdfjs-dist/legacy/build/pdf.worker.mjs",
      "pdfjs-dist/build/pdf.worker.js": "pdfjs-dist/legacy/build/pdf.worker.mjs",
      "pdfjs-dist/build/pdf.worker": "pdfjs-dist/legacy/build/pdf.worker.mjs"
    }
  },
  server: {
    host: "0.0.0.0",
    port: 3e3,
    proxy: {
      "/api": {
        target: "http://localhost:8000",
        changeOrigin: true,
        rewrite: (path) => {
          if (!path.startsWith("/api/v1")) {
            return path.replace("/api", "/api/v1");
          }
          return path;
        }
      }
    }
  },
  css: {
    preprocessorOptions: {
      scss: {
        api: "modern-compiler"
        // or "modern"
      }
    }
  },
  build: {
    outDir: "dist",
    assetsDir: "assets",
    sourcemap: false,
    chunkSizeWarningLimit: 1500
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxteWhvbWVcXFxcbXlwcm9qZWN0c1xcXFxwcm9qZWN0LW1hbmFnZW1lbnQ2YVxcXFxmcm9udGVuZFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRTpcXFxcbXlob21lXFxcXG15cHJvamVjdHNcXFxccHJvamVjdC1tYW5hZ2VtZW50NmFcXFxcZnJvbnRlbmRcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0U6L215aG9tZS9teXByb2plY3RzL3Byb2plY3QtbWFuYWdlbWVudDZhL2Zyb250ZW5kL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcbmltcG9ydCB2dWUgZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlJ1xuaW1wb3J0IHsgcmVzb2x2ZSB9IGZyb20gJ3BhdGgnXG5pbXBvcnQgQXV0b0ltcG9ydCBmcm9tICd1bnBsdWdpbi1hdXRvLWltcG9ydC92aXRlJ1xuaW1wb3J0IENvbXBvbmVudHMgZnJvbSAndW5wbHVnaW4tdnVlLWNvbXBvbmVudHMvdml0ZSdcbmltcG9ydCB7IEVsZW1lbnRQbHVzUmVzb2x2ZXIsIEF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